<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/commons/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <title>用户列表</title>
  </head>
  <body>
 	<a class="btn-link pull-right"　 href="${ctx}/admin/user/form">添加</a>
 	<table class="table table-striped table-bordered table-hover">
 	<thead><tr>
 	<td>用户名</td><td>角色</td><td>操作</td>
 	</tr></thead>
	 	<c:forEach items="${resultMap.data.datas}" var="bean">
			<tr>
				<td>${bean.userName}</td>
				<td>
					<c:forEach items="${bean.roles}" var="item">
						${item.roleName}&nbsp;
					</c:forEach>
				</td>				
				<td>
					<a href="#">禁用/启用</a>
					<a href="${ctx}/admin/user/form?id=${bean.id}">分配角色</a>
				</td>
			</tr>	 	
	 	</c:forEach>
 	</table>
  </body>
</html>
